import { Router } from 'express';
import { ClientFunFactController } from '../../api/controllers/funFactController';
import { authenticateClient } from '../../middleware/auth';

const router = Router();
const funFactController = new ClientFunFactController();

/**
 * @swagger
 * /api/client/fun-facts:
 *   get:
 *     summary: 获取冷知识
 *     tags: [客户端冷知识]
 *     responses:
 *       200:
 *         description: 获取成功
 */
router.get('/', authenticateClient, funFactController.getFunFact);

export default router;
